package me.jollyfly.jshop.item.server

import me.jollyfly.jshop.item.client.model.ItemCategoryDO
import me.jollyfly.jshop.item.server.service.ItemCatService
import org.junit.Test
import org.junit.runner.RunWith
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.boot.test.context.SpringBootTest
import org.springframework.test.context.junit4.SpringRunner

@RunWith(SpringRunner::class)
@SpringBootTest
class ServiceTest {

    @Autowired
    var itemCatService : ItemCatService? = null

    @Test
    fun testItemCat(){
        var itemCatList:List<ItemCategoryDO> = itemCatService!!.listCategory()
        itemCatList.forEach { println(it) }
    }


}